/*
 * @Author: kongaobo tkfor@foxmail.com
 * @Date: 2024-02-23 10:21:36
 * @LastEditors: kongaobo tkfor@foxmail.com
 * @LastEditTime: 2024-02-27 16:40:30
 * @FilePath: \asset-management-local\src\views\asset\assetDiscovery\taskManage\add\addFlieInterface.ts
 * @Description: 这个是文件任务的接口
 */
export interface scanModeOptionsType {
  id: string
  templateName: string
}

export interface scanModeType {
  marked: string //是否分类分级：0：否，1：是,
  markedTemplateId: string // 数据标准
  ruleMark: string //是否规则打标 0否，1是
  moduleMark: string //是否机器学习模型 0否，1是
  fileMark: string //是否文件相似度 0否，1是
  rulePriority: number //规则打标优先级
  modulePriority: number //机器学习模型优先级
  filePriority: number //文件相似度优先级
  moduleId: string //机器学习模型id
  likeSignAlgo: string[] //相似度指纹算法: MD5,KFS,PFS,PSA
  likeThreshold: number //相似度阈值，百分比
}

export const likeSignAlgos: string[] = ['MD5', 'KFS', 'PFS', 'PSA']

export type responseType = {
  id: number | undefined | string
  name: string
  type: string
  size: number
  configId: number
  createTime: string
  path: string
  url: string
}

export interface assetListType {
  //待查资产文件table
  id: number | undefined | string
  taskId: number | undefined | string
  fileId: string | undefined | number
  fileName: string
  fileType: string
  fileSize: number | undefined
  deptId: string | never[]
  sysId: string | never[] |number
  formId?:string
}
